#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
   int n;
   int c = 0;
   cin >> n;
   do
   {
   	 n = n/10;
   	 c++;
   	
   }while(n);
   cout << c << endl;
}

